package com.bdqn;

import java.io.IOException;
import java.io.Serializable;

public final class Person extends BaseClass implements Serializable {
    private String name;
    static final int age = 40;
    protected String address;
    public String message;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static int getAge() {
        return age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    private void silentMethod() throws IOException,NullPointerException{
        System.out.println("这是一段文字");
    }

    public Person() {
    }

    public Person(String name, String address, String message) {
        this.name = name;
        this.address = address;
        this.message = message;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}
